home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Followup-To: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  6. Date: 19 Apr 1996 01:00:18 +1200
  7. Organization: My game company
  8. Message-ID: <4l5ed3$vm@airdmhor.gen.nz>
  9. References: <4icpp9$7hr@barad-dur.nas.com> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au> <4kmfqn$e0f@airdmhor.gen.nz> <4kubt3$2jk@plains.nodak.edu>
  10. NNTP-Posting-Host: airdmhor.gen.nz
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. In article <4kmfqn$e0f@airdmhor.gen.nz>,
  14. Simon Hosie <gumboot@airdmhor.gen.nz> wrote:
  15. >    if(something_happened)
  16. >        do_something_else();
  17.  
  18. Michael J. Hennebry:
  19. > AAAaaarrrggg! This is an accident waiting to happen. Here is Simon's
  20. > code after its next update:
  21.  
  22. >        if(something_happened)
  23. >            do_something_else();
  24. >            do_yet_another_thing();
  25.  
  26.   I have never, in my entire life, made that mistake..  Except in CoBOL,
  27. where you go from
  28.  
  29.            IF something_happened THEN
  30.                do_something_else.
  31.  
  32. to
  33.  
  34.            IF something_happened THEN
  35.                do_something_else.
  36.                do_yet_another_thing.
  37.  
  38. when you actually meant
  39.  
  40.            IF something_happened THEN
  41.                do_something_else
  42.                do_yet_another_thing.
  43.